﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using Model;

namespace IDAL
{
    public interface IBaseDal<T> where T : BaseEntity
    {
        Task<int> AddAsync(T model);
        Task<int> UpdateAsync(T model);
        Task<int> DeleteAsync(T model);
        Task<List<T>> GetAll();
        Task<T> GetIdAll(Guid id);
        Task<List<T>> GetDataByChoose(Expression<Func<T, bool>> where);
    }
}
